package org.itboys.mobile.controller.web;

import org.itboys.commons.CommonConstants;
import org.itboys.commons.dto.ResultPageDOHelper;
import org.itboys.commons.utils.ajax.AjaxUtils;
import org.itboys.framework.query.JsonPageUtils;
import org.itboys.framework.spring.controller.BaseController;
import org.itboys.mobile.entity.mysql.TianJieWalletProduct;
import org.itboys.mobile.service.SundayDesktopService;
import org.itboys.param.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 作者：江雄
 * 日期：2017年5月10日
 * 描述：圣代_首页_controller_web
 */
@Controller
@RequestMapping("/sunday/web/desktop")
public class SundayDesktopController extends BaseController{
    @Autowired
    private SundayDesktopService desktopService;


    /**
     * 主页
     * @param request
     * @param model
     * @return
     */
    @RequestMapping("/index")
    public String index(HttpServletRequest request,
                        Model model){
        Map<String,Object> result =desktopService.getDesktopData();
        model.addAttribute("result",result);
        return "/sunday/desktop/index";
    }



}
